how to generate inout for a programming question Search